import request from '@/utils/request';

// 查询交易统计数据
export const queryTradingStatistics = (data) => {
  return request({
    url: '/shop/income/queryTradingStatistics',
    method: 'POST',
    data,
  })
}
// 查询交易记录
export const queryTransactionHistory = (data) => {
  return request({
    url: '/shop/income/queryTransactionHistory',
    method: 'POST',
    data,
  })
}
// 导出交易记录
export const exportTransactionHistory = (data) => {
  return request({
    url: '/shop/income/exportTransactionHistory',
    method: 'POST',
    data,
    responseType: 'blob',
  })
}
// 导出提现记录
export const exportWithdrawLog = (data) => {
  return request({
    url: '/shop/income/exportWithdrawLog',
    method: 'POST',
    data,
    responseType: 'blob',
  })
}
// 查询账户统计数据
export const queryUserAccountData = (data) => {
  return request({
    url: '/shop/income/queryUserAccountData',
    method: 'POST',
    data
  })
}
// 查询账户提现记录
export const queryWithdrawLog = (data) => {
  return request({
    url: '/shop/income/queryWithdrawLog',
    method: 'POST',
    data
  })
}
export const countOrderData = (data) => {
  return request({
    url: '/shop/income/countOrderData',
    method: 'POST',
    data
  })
}